#include <string.h>
#include <jni.h>
#include <sys/system_properties.h>
#include <string.h>
#include "base.h"

JNIEXPORT jboolean JNICALL
Java_com_instwall_callbase_MConfig_getEvn(JNIEnv *env, jobject thiz) {
    char *tmp;
    char value[93] = "";
    __system_property_get("ro.product.model", value);
    LOGI("[Get Property \"ro.product.model\" %s]", value);
    if (value == NULL) {
        LOGE("[Java_com_instwall_base_MConfig_getEvn][Get Model is Null]");
        return JNI_FALSE;
    } else {
        LOGI("[Current Android Model: %s]", value);
        char *stand = "3288";
        tmp = strstr(value, stand);
    }
    if (tmp != NULL) {
        LOGI("[Match Str:%s]", tmp);
        return JNI_TRUE;
    }
    LOGE("[Hardware Don't Support]");
    return JNI_FALSE;
}